var util = {
  getUrlParameters : function() {
    var map = {};
    var params = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i < params.length; i++) {
        var split = params[i].split('=');
        map[split[0]] = split[1];
    }
    return map;
  },

  getLeft : function(element) {
    return parseInt(element.css("left"));
  },

  getTop : function(element) {
    return parseInt(element.css("top"));
  }
};